package gagak.framework.web.paramresovler.converter;


import gagak.framework.web.support.http.MediaType;

import java.util.List;

public interface MediaTypeFileExtensionResolver {

	/*
	 * Resolve the given media type to a list of path extensions.
	 * @param mediaType the media type to resolve
	 * @return a list of extensions or an empty list (never {@code null})
	 */
	List<String> resolveFileExtensions(MediaType mediaType);

	/*
	 * Return all registered file extensions.
	 * @return a list of extensions or an empty list (never {@code null})
	 */
	List<String> getAllFileExtensions();

}
